function latisoft_openTable(){
    
    var str = "";
    
    str += "\
        <table class='table table-bordered table-striped'> \
            <thead> \
        <tr>";
    
    for (var i in arguments){
        str += "\
        <th>"+arguments[i]+"</th>";
    }

    str += "\
        </tr> \
        </thead> \
        <tbody>";

    return str;
    
}

function latisoft_openStylableTable(){
    
    var str = "";
    
    str += "\
        <table class='table table-bordered table-striped responsive-utilities'> \
            <thead> \
        <tr>";
    
    for (var i=0; i<arguments.length; i++){
        str += "\
        <th>"+arguments[i]+"</th>";
    }

    str += "\
        </tr> \
        </thead> \
        <tbody>";

    return str;
    
}



function latisoft_tableRow(){
    var str = "";    

    str += "<tr>";
    for (var i in arguments){
        str += "<td align='center' valign='middle'>"+arguments[i]+"</td>";
    }
    str += "</tr>";

    return str;
}

function latisoft_tableRowStyleFirst(){
    var str = "";    

    str += "<tr>";
    for (var i=1; i<arguments.length; i++){
        str += "<td align='center' class='"+arguments[0]+"' valign='middle'>"+arguments[i]+"</td>";
    }
    str += "</tr>";

    return str;
}


function latisoft_closeTable(){
    var str = "</tbody></table>";
    return str;
}

function latisoft_scrollToAnchor(anchorName){
    $('html,body').animate({scrollTop: $("a[name='"+anchorName+"']").offset().top});
}